<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage<Animoso.Domain.Event>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   
    <h2>Event Toevoegen</h2>

    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Event Gegevens</legend>
            <p>
                <label for="Name">Naam:</label><br />
                <%= Html.TextBox("Name", "", new {size = 50}) %>
                <%= Html.ValidationMessage("Name", "*") %>
            </p>
            <p>
                <label for="DateTime">Datum:</label><br />
                <%= Html.TextBox("DateTime", "", new { id = "dateTime" })%>
                <%= Html.ValidationMessage("DateTime", "*") %>
            </p>
             <p>
                <label for="Description">Beschrijving:</label><br />
                <%= Html.TextArea("Description", "", 10,40, null)%>
                <%= Html.ValidationMessage("Description", "*") %>
            </p>
            <p>
                <input type="submit" value="Toevoegen" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>
    <script type="text/javascript">
        $(function() {
            $("#dateTime").datepicker({ dateFormat: 'dd-mm-yy' });
        });
    </script>

</asp:Content>

